<!DOCTYPE html>
<html lang="en">
<head>
    <meta charset="utf-8">
    <title>口袋妈咪</title>
    <meta name="renderer" content="webkit">
    <meta name="viewport" content="width=device-width, initial-scale=1, minimum-scale=1, maximum-scale=1">
    <link rel="shortcut icon" href="/icon.ico" type="image/x-icon" />
    <!-- Link Swiper's CSS -->
    <link rel="stylesheet" href="css/swiper.min.css">
	<link rel="stylesheet" href="css/animate.min.css">
    <!-- Demo styles -->
    <style>
    html, body {
        position: relative;
        height: 100%;
		margin:0; 
		padding:0;
    }
    .swiper-container {
        width: 100%;
        height: 100%;
        margin-left: auto;
        margin-right: auto;
    }
    .swiper-slide {
        text-align: center;
        font-size: 18px;
        background: #fff;
		position:relative;

        /* Center slide text vertically */
        -webkit-box-pack: center;
        -ms-flex-pack: center;
        -webkit-justify-content: center;
        justify-content: center;
        -webkit-box-align: center;
        -ms-flex-align: center;
        -webkit-align-items: center;
        align-items: center;
		line-height:0;
    }
	
	.p1{
		position:absolute;
		left:50%;
		top:50%;
		margin-left:-683px;
		margin-top:-384px;
	}
	
	.ani-wrap{
		position:absolute;
		left:50%;
		top:50%;
		margin-left:-435px;
		margin-top:-207px;
		width:870px;
		height:414px;
	}
	.ani-wrap img{
		width:870px;
		height:414px;
	}
	
	@keyframes next
	{
	0%   {transform:translateY(0)}
	100% {transform:translateY(15px)}
	}
	
	@-moz-keyframes next /* Firefox */
	{
	0%   {-moz-transform:translateY(0)}
	100% {-moz-transform:translateY(15px)}
	}
	
	@-webkit-keyframes next /* Safari 和 Chrome */
	{
	0%   {-webkit-transform:translateY(0)}
	100% {-webkit-transform:translateY(15px)}
	}
	
	@-o-keyframes next /* Opera */
	{
	0%   {-o-transform:translateY(0)}
	100% {-o-transform:translateY(15px)}
	}
	.next-icon{
		position:absolute;
		bottom:20px;
		left:50%;
		margin-left:-50px;
		width:100px;
		height:60px;
		opacity:0.5;
		-moz-opacity:0.5;
		background:url(images/next.png) no-repeat center center;
		animation: next 0.5s ease 0s infinite alternate;
		-moz-animation: next 0.5s ease 0s infinite alternate;	/* Firefox */
		-webkit-animation: next 0.5s ease 0s infinite alternate;	/* Safari 和 Chrome */
		-o-animation: next 0.5s ease 0s infinite alternate;	/* Opera */
	}
    </style>
</head>
<body>
    <!-- Swiper -->
    <div class="swiper-container">
        <div class="swiper-wrapper">
            <div class="swiper-slide" style="background-color:#e9e9e9">
            	<img class="p1" src="picture/p1.png"  />
                <div class="next-icon" ></div>
            </div>
            <div class="swiper-slide" style="background:url(images/p2_bg.png) no-repeat center center #ffdb2b;">
                <div class="ani-wrap ani" swiper-animate-effect="fadeInDown" swiper-animate-duration="1s" swiper-animate-delay="0s" >
                	<img src="picture/p2.png" />
                </div>
                <div class="next-icon" ></div>
            </div>
            <div class="swiper-slide" style="background:url(images/p3_bg.png) no-repeat center center #bb9dff;">
                <div class="ani-wrap ani" swiper-animate-effect="fadeInDown" swiper-animate-duration="1s" swiper-animate-delay="0s" >
                	<img src="picture/p3.png" />
                </div>
                <div class="next-icon" ></div>
            </div>
            <div class="swiper-slide" style="background:url(images/p4_bg.png) no-repeat center center #75cdde;">
                <div class="ani-wrap ani" swiper-animate-effect="fadeInDown" swiper-animate-duration="1s" swiper-animate-delay="0s" >
                	<img src="picture/p4.png" />
                </div>
                <div class="next-icon" ></div>
            </div>
            <div class="swiper-slide" style="background:url(images/p5_bg.png) no-repeat center center #ff8daf;">
                <div class="ani-wrap ani" swiper-animate-effect="fadeInDown" swiper-animate-duration="1s" swiper-animate-delay="0s" >
                	<img src="picture/p5.png" />
                </div>
            </div>
        </div>
        <!-- Add Pagination -->
        <div class="swiper-pagination"></div>
    </div>

    <!-- Swiper JS -->
    <script src="js/jquery.min.js"></script>
    <script src="js/swiper.min.js"></script>
    <script src="js/swiper.animate1.0.2.min.js"></script>

    <!-- Initialize Swiper -->
    <script>
    var swiper = new Swiper('.swiper-container', {
        pagination: '.swiper-pagination',
        direction: 'vertical',
        slidesPerView: 1,
		speed:1000,
        paginationClickable: true,
        spaceBetween: 0,
        mousewheelControl: true,
		watchSlidesProgress: true,
		onInit: function(swiper) {
			swiper.myactive = 0;
			swiperAnimateCache(swiper); //隐藏动画元素 
			swiperAnimate(swiper); //初始化完成开始动画

		},onSlideChangeStart: function(swiper){
			if(swiper.previousIndex > swiper.activeIndex){
				$(".ani-wrap").eq(swiper.activeIndex-1).attr("swiper-animate-effect","fadeInUp");
			}else{
				$(".ani-wrap").eq(swiper.activeIndex-1).attr("swiper-animate-effect","fadeInDown");
			}
			swiperAnimate(swiper);
		}
    });
    </script>
</body>
</html>